package com.otitan.la.forest.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.otitan.la.forest.system.dto.AreaDTO;
import com.otitan.la.forest.system.entity.AreaEntity;
import com.otitan.la.forest.system.vo.AreaEntityVO;
import com.otitan.la.forest.system.vo.AreaVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 行政区划表
 * 
 * @author jiacs
 * @email xxx
 * @date 2020-10-09 15:04:19
 */
@Mapper
public interface AreaMapper extends BaseMapper<AreaEntity> {
    List<AreaVO> findAreaTree(@Param("nowTime") String nowTime, @Param("type")String type);

    List<AreaEntityVO> findPageData(@Param("area") AreaDTO area, Page page);

}
